package com.itheima.objstream;

import com.itheima.domain.User;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Demo03 {

    public static void main(String[] args) throws IOException {
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("day13\\user.txt"));
        oos.writeObject(new User("luhan","520gxt"));
        oos.close();

    }
}
